imagename='E:\Image Processing\PCP_CAP_CXR.jpg';
image_org=imread(imagename);

figure;
imshow(image_org);
title('Image_Org');

N=7;
CF=2;
SF=2;
level=N;
CFs=ones(N)*CF;
CFs(1)=CFs(1)*SF;
CFs;
kernel = [1 2 1;2 4 2;1 2 1]/16;
kernel;

res=laplacianpyr(CFs,kernel,image_org,N,N);
figure;
imshow(res);
size(res);
title('result image')